package com.googlecode.imanager.client.exception;

import com.googlecode.imanager.client.action.Action;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class ActionFailureException extends IMRuntimeException {

    private static final long serialVersionUID = 1L;
    
    private final Action action;

    public ActionFailureException(Action action) {
        this.action = action;
    }

    public ActionFailureException(Action action, String message, Throwable cause) {
        super(message, cause);
        this.action = action;
    }

    public ActionFailureException(Action action, String message) {
        super(message);
        this.action = action;
    }

    public ActionFailureException(Action action, Throwable cause) {
        super(cause);
        this.action = action;
    }

    public Action getAction() {
        return action;
    }

}
